<?php
	session_start();
	$which=$_POST['which'];
	include('system/db/conn.php');

	if($which==0){
		$username=$_POST['username'];
		$check_query = mysql_query("select * from do_user where user_name='$username' limit 1");
		if(mysql_fetch_array($check_query)){
    		print_r("no");
		}else{
			print_r("yes");
		}
	}elseif ($which==1) {
    	$shoporderid=$_POST['shoporderid'];
   
		$sql = "update do_deal_order set order_status=2,backYesNo='1'  where id=".$shoporderid;

		if(mysql_query($sql,$conn)){
			print_r("yes");
		}else{
			print_r("no");
		}
	}elseif ($which ==2) { //检查手机号是不是重复
		$mobileno=$_POST['mobileno'];
		$check_query = mysql_query("select * from do_user where mobile='$mobileno' limit 1");
		if(mysql_fetch_array($check_query)){
    		print_r("no");
		}else{
			print_r("yes");
		}
	}

?>